<%@page contentType="text/html; charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- saved from url=(0032)https://fly.layui.com/user/post/ -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>我的帖子 - Fly社区</title>
    <link rel="stylesheet" type="text/css" href="../commons/iconfont/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="../commons/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="../style/global.css"/>
    <script src="../js/jquery-3.3.1.min.js" type="text/javascript"></script>
    <script src="../commons/layui/layui.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="fly-header layui-bg-black">
    <div class="layui-container"><a class="fly-logo" name="headlink" href="javascript:gotoIndex();"> <img
            src="../img/logo.png"
            alt="layui">
    </a>
        <ul class="layui-nav fly-nav layui-hide-xs">
            <li class="layui-nav-item layui-this"><a href="javascript:gotoIndex();"><i
                    class="iconfont icon-jiaoliu"></i>交流</a>
            </li>
            <li class="layui-nav-item"><a href="javascript:;"><i class="iconfont icon-chanpin"
                                                                 style="top: 1px;"></i>专区<span
                    class="layui-nav-more"></span></a>
                <dl class="layui-nav-child fly-nav-child layui-anim layui-anim-upbit">
                    <dd><a href="/vipclub/list/layuiadmin/">layuiAdmin</a></dd>
                    <hr>
                    <dd><a href="/vipclub/list/layim/">LayIM</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="http://www.layui.com/"><i class="iconfont icon-ui"></i>框架</a></li>
        </ul>
        <ul class="layui-nav fly-nav-user">
            <li class="layui-nav-item"><a class="fly-nav-avatar" href="https://fly.layui.com/user/"
                                          id="LAY_header_avatar">
                <cite class="layui-hide-xs nickName">${currentUser.nickName}</cite> <img
                    src="../upload/${currentUser.headImg}"> <span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child layui-anim layui-anim-upbit">
                    <dd><a href="javascript:gotoUserCenter();">用户中心</a></dd>
                    <dd><a href="javascript:gotoUserAset();">基本设置</a></dd>
                    <hr>
                    <dd><a href="javascript:gotoUserMsg();">我的消息</a></dd>
                    <dd><a href="">已购产品</a></dd>
                    <dd><a href="javascript:gotoUserHomepage(${currentUser.id});">我的主页</a></dd>
                    <hr style="margin: 5px 0;">
                    <dd><a href="https://fly.layui.com/user/logout/" style="text-align: center;">退出</a></dd>
                </dl>
            </li>
            <span class="layui-nav-bar" style="left: 0px; top: 55px; width: 0px; opacity: 0;"></span>
        </ul>
    </div>
</div>
<div class="layui-container fly-marginTop fly-user-main">
    <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
        <li class="layui-nav-item"><a href="javascript:gotoUserHomepage(${currentUser.id});"> <i
                class="layui-icon"></i> 我的主页 </a></li>
        <li class="layui-nav-item"><a href="userCenter.jsp"> <i class="layui-icon"></i> 用户中心 </a>
        </li>
        <li class="layui-nav-item "><a href="javascript:gotoUserAset();"> <i class="layui-icon"></i> 基本设置 </a></li>
        <li class="layui-nav-item layui-this"><a href="javascript:gotoUserInvitation();"> <i
                class="iconfont icon-tiezi"></i> 我的帖子 </a></li>
        <li class="layui-nav-item "><a href="javascript:gotoUserMsg();"> <i class="layui-icon"></i> 我的消息 </a>
        </li>
        <li class="layui-nav-item "><a href="https://fly.layui.com/user/product/"> <i class="iconfont icon-chanpin"></i>
            已购产品 </a></li>
        <li class="layui-nav-item "><a href="https://fly.layui.com/user/extend/"> <i
                class="layui-icon layui-icon-component"></i>
            我的组件 </a></li>
        <span class="layui-nav-bar"></span>
    </ul>
    <div class="site-tree-mobile layui-hide"><i class="layui-icon"></i></div>
    <div class="site-mobile-shade"></div>
    <div class="fly-panel fly-panel-user" pad20="">
        <div class="layui-tab layui-tab-brief" lay-filter="user" id="LAY_uc">
            <ul class="layui-tab-title" id="LAY_mine">
                <li data-type="mine-jie" lay-id="index" class="layui-this">我发的帖</li>
                <li data-type="collection" data-url="/collection/find/" lay-id="collection">我收藏的帖</li>
            </ul>
            <div class="layui-tab-content" id="LAY_ucm" style="padding: 5px 0;">
                <div class="layui-tab-item layui-show">
                    <table class="layui-hide" id="LAY_mySendCard"></table>
                    <div class="layui-form layui-border-box layui-table-view" lay-filter="LAY-table-1"
                         lay-id="LAY_mySendCard" style=" ">
                        <div class="layui-table-box">
                            <div class="layui-table-header">
                                <table id="tabData"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<div class="fly-footer">
    <p><a href="http://fly.layui.com/">Fly 社区</a> 2019 © <a href="http://www.layui.com/">layui.com</a></p>
    <p><a href="http://fly.layui.com/jie/3147/" target="_blank">付费计划</a> <a href="https://fly.layui.com/extend/"
                                                                            target="_blank">组件平台</a>
        <a href="https://fly.layui.com/store/" target="_blank">模板市场</a> <a href="https://fly.layui.com/case/2019/"
                                                                           target="_blank">年度案例</a>
        <a href="http://fly.layui.com/jie/2461/" target="_blank">公众号</a></p>
    <div class="fly-union">
        <p style="display: block; margin-bottom: 10px;"><span>感谢以下平台提供云加速支持</span></p>
        <p><a href="https://console.upyun.com/register/?invite=SJ0wu6g2-" target="_blank" rel="nofollow"
              sponsor="upyun">
            <img src="../img/upyun.png"> </a> <a href="https://www.maoyuncloud.com/?from=layui" target="_blank"
                                                 rel="nofollow" sponsor="maoyun"> <img
                src="../img/168_1559291577683_9348.png"></a></p>
    </div>
</div>
<script>
    layui.use('table', function () {
        var table = layui.table;
        //第一个实例
        table.render({
            elem: "#tabData",
            url: "../index/findPostByUserId"//数据接口
            , page: true //开启分页
            , cols: [[
                {field: "title", title: "帖子标题", minWidth: 180},
                {
                    field: "status", title: "状态", minWidth: 40, templet: function (d) {
                        let status = d.status == 1 ? '已审核' : '未审核';
                        return '<span style="color: #999;">'+status+'</span>';
                    }
                },
                {
                    title: "结帖", minWidth: 40, templet: function (d) {
                        let isClosed = d.isClosed == 1 ? '已结' : '未结';
                        return '<span style="color: #5FB878;">'+isClosed+'</span>';
                    }
                },
                {field: "createTime", title: "发表时间", minWidth: 180},
                {
                    title: "数据", minWidth: 80, templet: function (d) {
                        return '<span style="font-size: 12px;">'+d.browseNum+'阅/'+d.replyNum+'答</span>';
                    }
                },
                {title: "操作", align: 'center'}
            ]]
        });
    });
</script>
<script src="../js/index.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>
